<?php
    // Create user table
    $DB = mysqli_connect('kvd_mysql', 'root', 'root', 'kvd');
    try {
        $sql = "create table if not exists  users (
        id int PRIMARY KEY AUTO_INCREMENT,
        phone VARCHAR(255) NOT NULL UNIQUE,
        age int,
        name VARCHAR(255),
        email VARCHAR(255),
        token VARCHAR(255),
        created VARCHAR(255),
        updated VARCHAR(255)
        );";
        $DB->query($sql);
        $sql = "INSERT INTO users (phone, name, email, token, created, updated)
                        VALUES
                        ('89990000000','Тестов' , 'test@test.test', '', '01.11.2023', '01.11.2023');";
        $DB->query($sql);
    } catch (Exception $exception) {
        echo $exception;
    }
    $DB->close();
    unset($DB);